<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>会员筛选 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --border-light: #e2e8f0;
            --radius: 12px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 搜索区域 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .search-box {
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            border-radius: 30px;
            border: 1px solid var(--border-light);
            font-size: 0.9rem;
            background-color: var(--bg-light);
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary-light);
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        }
        
        .voice-search {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            background: none;
            border: none;
        }
        
        /* 筛选器切换按钮 */
        .filter-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px 0;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        .toggle-icon {
            margin-left: 8px;
            transition: transform 0.3s ease;
        }
        
        .toggle-icon.rotate {
            transform: rotate(180deg);
        }
        
        /* 筛选器容器 */
        .filters-container {
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.3s ease;
        }
        
        /* 筛选选项卡 */
        .filters-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-light);
            overflow-x: auto;
            scrollbar-width: none;
        }
        
        .filters-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .filter-tab {
            padding: 12px 18px;
            white-space: nowrap;
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
        }
        
        .filter-tab.active {
            color: var(--primary);
        }
        
        .filter-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--primary);
        }
        
        /* 筛选内容区域 */
        .filter-content {
            padding: 16px;
            display: none;
        }
        
        .filter-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 筛选标题 */
        .filter-section-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }
        
        /* 基础筛选选项 */
        .basic-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .basic-filter-option {
            padding: 6px 14px;
            background-color: var(--bg-light);
            border-radius: 20px;
            font-size: 0.85rem;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            white-space: nowrap;
        }
        
        .basic-filter-option.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 距离筛选 */
        .distance-slider-container {
            padding: 10px 0 20px;
        }
        
        .distance-slider {
            width: 100%;
            accent-color: var(--primary);
        }
        
        .distance-value {
            text-align: center;
            font-size: 0.9rem;
            color: var(--primary);
            margin-top: 8px;
        }
        
        /* 技能筛选 */
        .skills-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .skill-filter-tag {
            padding: 6px 12px;
            background-color: var(--bg-light);
            border-radius: 20px;
            font-size: 0.8rem;
            color: var(--text-primary);
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .skill-filter-tag.active {
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .tag-check {
            display: none;
        }
        
        .skill-filter-tag.active .tag-check {
            display: inline;
        }
        
        /* 活跃度筛选 */
        .activity-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .activity-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
        }
        
        .activity-option input {
            accent-color: var(--primary);
        }
        
        .activity-label {
            flex: 1;
            font-size: 0.9rem;
            color: var(--text-primary);
        }
        
        .activity-desc {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        /* 已选筛选器 */
        .selected-filters {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }
        
        .selected-filters-title {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-right: 4px;
        }
        
        .selected-filter {
            padding: 4px 10px;
            background-color: rgba(59, 130, 246, 0.1);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .remove-filter {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(59, 130, 246, 0.2);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.6rem;
        }
        
        .clear-all {
            margin-left: auto;
            font-size: 0.85rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        /* 列表视图切换 */
        .view-toggle {
            padding: 8px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .view-title {
            font-size: 0.9rem;
            font-weight: 600;
        }
        
        .view-count {
            color: var(--text-secondary);
            font-size: 0.8rem;
        }
        
        .view-options {
            display: flex;
            gap: 12px;
        }
        
        .view-btn {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background-color: var(--bg-light);
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
        }
        
        .view-btn.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 会员列表容器 */
        .members-list {
            padding: 12px;
        }
        
        /* 卡片式列表 */
        .members-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        
        /* 列表式布局 */
        .members-list-view {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        /* 会员卡片基础样式 */
        .member-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
            transition: transform 0.2s ease;
        }
        
        .member-card:hover {
            transform: translateY(-2px);
        }
        
        /* 列表式卡片样式 */
        .list-view .member-card {
            display: flex;
            height: 120px;
        }
        
        /* 会员图片区域 */
        .member-media {
            position: relative;
            background-color: var(--bg-light);
        }
        
        /* 网格视图图片样式 */
        .grid-view .member-media {
            height: 140px;
            width: 100%;
        }
        
        /* 列表视图图片样式 */
        .list-view .member-media {
            width: 100px;
            flex-shrink: 0;
        }
        
        /* 无图片样式 */
        .no-media .member-media {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
        }
        
        .no-media-placeholder {
            font-size: 2rem;
        }
        
        /* 单张图片样式 */
        .single-media .member-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 多张图片样式 */
        .multiple-media .media-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            width: 100%;
            height: 100%;
        }
        
        .multiple-media .media-item {
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        
        .multiple-media .media-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 图片数量标记 */
        .media-count {
            position: absolute;
            bottom: 6px;
            right: 6px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
        }
        
        /* 会员信息区域 */
        .member-info {
            padding: 12px;
        }
        
        .grid-view .member-info {
            max-height: 100px;
            overflow: hidden;
        }
        
        .list-view .member-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .member-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 6px;
        }
        
        .member-name {
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .member-status {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }
        
        .status-online {
            background-color: var(--success);
        }
        
        .status-offline {
            background-color: var(--text-secondary);
        }
        
        .member-distance {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        .member-skills {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 6px;
        }
        
        .skill-tag {
            padding: 2px 8px;
            background-color: var(--bg-light);
            border-radius: 10px;
            font-size: 0.7rem;
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
        }
        
        .member-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        .member-actions {
            display: flex;
            gap: 8px;
        }
        
        .action-icon-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
        }
        
        .message-btn {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .follow-btn {
            background-color: var(--bg-light);
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
        
        .follow-btn.following {
            background-color: var(--bg-light);
            color: var(--danger);
            border-color: var(--danger);
        }
        
        /* 加载更多 */
        .load-more {
            padding: 15px 0;
            text-align: center;
            font-size: 0.9rem;
            color: var(--primary);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 筛选操作按钮 */
        .filter-actions {
            display: flex;
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-top: 1px solid var(--border-light);
            gap: 10px;
        }
        
        .filter-btn {
            flex: 1;
            padding: 8px 0;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 500;
            text-align: center;
        }
        
        .reset-btn {
            background-color: var(--bg-light);
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
        
        .apply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body class="grid-view">
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">会员筛选</div>
        <button class="nav-action primary" id="sortBtn">
            <i class="fas fa-sort"></i>
        </button>
    </div>
    
    <!-- 搜索区域 -->
    <div class="search-container">
        <div class="search-box">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索会员、技能或标签...">
            <button class="voice-search" id="voiceSearch">
                <i class="fas fa-microphone"></i>
            </button>
        </div>
    </div>
    
    <!-- 筛选器切换按钮 -->
    <div class="filter-toggle" id="filterToggle">
        <span>筛选条件</span>
        <i class="fas fa-chevron-down toggle-icon" id="toggleIcon"></i>
    </div>
    
    <!-- 筛选器容器 -->
    <div class="filters-container" id="filtersContainer">
        <!-- 筛选器选项卡 -->
        <div class="filters-tabs">
            <div class="filter-tab active" data-filter="basic">基础筛选</div>
            <div class="filter-tab" data-filter="distance">距离范围</div>
            <div class="filter-tab" data-filter="skills">技能标签</div>
            <div class="filter-tab" data-filter="activity">活跃度</div>
            <div class="filter-tab" data-filter="advanced">高级筛选</div>
        </div>
        
        <!-- 1. 基础筛选内容 -->
        <div class="filter-content active" id="basic-filter">
            <div class="filter-section-title">会员类型</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">全部会员</div>
                <div class="basic-filter-option">已认证会员</div>
                <div class="basic-filter-option">新加入会员</div>
                <div class="basic-filter-option">活跃会员</div>
                <div class="basic-filter-option">有共同好友</div>
            </div>
            
            <div class="filter-section-title">在线状态</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">全部状态</div>
                <div class="basic-filter-option">在线会员</div>
                <div class="basic-filter-option">今日活跃</div>
                <div class="basic-filter-option">本周活跃</div>
            </div>
            
            <div class="filter-section-title">性别筛选</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">全部性别</div>
                <div class="basic-filter-option">男</div>
                <div class="basic-filter-option">女</div>
            </div>
        </div>
        
        <!-- 2. 距离范围筛选内容 -->
        <div class="filter-content" id="distance-filter">
            <div class="filter-section-title">设置距离范围</div>
            <div class="distance-slider-container">
                <input type="range" min="1" max="50" value="10" class="distance-slider" id="distanceSlider">
                <div class="distance-value" id="distanceValue">10公里以内</div>
            </div>
            
            <div class="filter-section-title">常用距离</div>
            <div class="basic-filters">
                <div class="basic-filter-option">1公里内</div>
                <div class="basic-filter-option active">10公里内</div>
                <div class="basic-filter-option">20公里内</div>
                <div class="basic-filter-option">50公里内</div>
                <div class="basic-filter-option">不限距离</div>
            </div>
        </div>
        
        <!-- 3. 技能标签筛选内容 -->
        <div class="filter-content" id="skills-filter">
            <div class="filter-section-title">热门技能标签</div>
            <div class="skills-filter">
                <div class="skill-filter-tag active">
                    <i class="fas fa-check tag-check"></i>
                    <span>摄影</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>音乐</span>
                </div>
                <div class="skill-filter-tag active">
                    <i class="fas fa-check tag-check"></i>
                    <span>编程</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>健身</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>烹饪</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>绘画</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>外语</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>设计</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>舞蹈</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>写作</span>
                </div>
            </div>
            
            <div class="filter-section-title">兴趣爱好</div>
            <div class="skills-filter">
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>旅游</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>阅读</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>电影</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>美食</span>
                </div>
                <div class="skill-filter-tag">
                    <i class="fas fa-check tag-check"></i>
                    <span>游戏</span>
                </div>
            </div>
        </div>
        
        <!-- 4. 活跃度筛选内容 -->
        <div class="filter-content" id="activity-filter">
            <div class="filter-section-title">最近活跃时间</div>
            <div class="activity-options">
                <div class="activity-option">
                    <input type="radio" name="activity" id="activity-all" checked>
                    <label for="activity-all" class="activity-label">
                        全部时间
                        <div class="activity-desc">包括所有会员，不限制活跃时间</div>
                    </label>
                </div>
                <div class="activity-option">
                    <input type="radio" name="activity" id="activity-now">
                    <label for="activity-now" class="activity-label">
                        正在线上
                        <div class="activity-desc">当前在线的会员</div>
                    </label>
                </div>
                <div class="activity-option">
                    <input type="radio" name="activity" id="activity-today">
                    <label for="activity-today" class="activity-label">
                        今天活跃
                        <div class="activity-desc">今天登录过的会员</div>
                    </label>
                </div>
                <div class="activity-option">
                    <input type="radio" name="activity" id="activity-week">
                    <label for="activity-week" class="activity-label">
                        本周活跃
                        <div class="activity-desc">最近7天内登录过的会员</div>
                    </label>
                </div>
                <div class="activity-option">
                    <input type="radio" name="activity" id="activity-month">
                    <label for="activity-month" class="activity-label">
                        本月活跃
                        <div class="activity-desc">最近30天内登录过的会员</div>
                    </label>
                </div>
            </div>
        </div>
        
        <!-- 5. 高级筛选内容 -->
        <div class="filter-content" id="advanced-filter">
            <div class="filter-section-title">年龄范围</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">不限年龄</div>
                <div class="basic-filter-option">18-22岁</div>
                <div class="basic-filter-option">23-30岁</div>
                <div class="basic-filter-option">31-40岁</div>
                <div class="basic-filter-option">41岁以上</div>
            </div>
            
            <div class="filter-section-title">会员等级</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">全部等级</div>
                <div class="basic-filter-option">Lv.1-Lv.3</div>
                <div class="basic-filter-option">Lv.4-Lv.6</div>
                <div class="basic-filter-option">Lv.7以上</div>
            </div>
            
            <div class="filter-section-title">是否有作品</div>
            <div class="basic-filters">
                <div class="basic-filter-option active">不限</div>
                <div class="basic-filter-option">有作品</div>
                <div class="basic-filter-option">无作品</div>
            </div>
        </div>
        
        <!-- 筛选操作按钮 -->
        <div class="filter-actions">
            <button class="filter-btn reset-btn" id="resetFilters">重置</button>
            <button class="filter-btn apply-btn" id="applyFilters">应用筛选</button>
        </div>
    </div>
    
    <!-- 已选筛选器 -->
    <div class="selected-filters">
        <span class="selected-filters-title">已选：</span>
        <div class="selected-filter">
            <span>摄影</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="selected-filter">
            <span>编程</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="selected-filter">
            <span>10公里内</span>
            <span class="remove-filter">×</span>
        </div>
        <div class="clear-all" id="clearAllFilters">
            <i class="fas fa-trash-alt"></i>
            <span>清除全部</span>
        </div>
    </div>
    
    <!-- 列表视图切换 -->
    <div class="view-toggle">
        <div class="view-title">
            找到 <span class="view-count">18</span> 位会员
        </div>
        <div class="view-options">
            <button class="view-btn active" id="gridViewBtn" title="网格视图">
                <i class="fas fa-th"></i>
            </button>
            <button class="view-btn" id="listViewBtn" title="列表视图">
                <i class="fas fa-list"></i>
            </button>
        </div>
    </div>
    
    <!-- 会员列表 -->
    <div class="members-list">
        <div class="members-container members-grid">
            <!-- 1. 多图会员卡片 -->
            <div class="member-card multiple-media">
                <div class="member-media">
                    <div class="media-grid">
                        <div class="media-item">
                            <img src="https://picsum.photos/id/119/300/300" alt="会员作品1">
                        </div>
                        <div class="media-item">
                            <img src="https://picsum.photos/id/133/300/300" alt="会员作品2">
                        </div>
                        <div class="media-item">
                            <img src="https://picsum.photos/id/142/300/300" alt="会员作品3">
                        </div>
                        <div class="media-item">
                            <img src="https://picsum.photos/id/160/300/300" alt="会员作品4">
                        </div>
                    </div>
                    <div class="media-count">4</div>
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            陈佳琪
                            <span class="member-status status-online"></span>
                        </div>
                        <div class="member-distance">3.2km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">UI设计</span>
                        <span class="skill-tag">摄影</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 今天活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn message-btn" data-name="陈佳琪">
                                <i class="fas fa-comment"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 2. 单图会员卡片 -->
            <div class="member-card single-media">
                <div class="member-media">
                    <img src="https://picsum.photos/id/91/300/300" alt="王建国" class="member-image">
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            王建国
                            <span class="member-status status-online"></span>
                        </div>
                        <div class="member-distance">8.3km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">摄影</span>
                        <span class="skill-tag">Python</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 1天前活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn message-btn" data-name="王建国">
                                <i class="fas fa-comment"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 3. 无图会员卡片 -->
            <div class="member-card no-media">
                <div class="member-media">
                    <i class="fas fa-user no-media-placeholder"></i>
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            陈明
                            <span class="member-status status-online"></span>
                        </div>
                        <div class="member-distance">1.8km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">编程</span>
                        <span class="skill-tag">吉他</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 2小时前活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn follow-btn following" data-name="陈明">
                                <i class="fas fa-check"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 4. 多图会员卡片 -->
            <div class="member-card multiple-media">
                <div class="member-media">
                    <div class="media-grid">
                        <div class="media-item">
                            <img src="https://picsum.photos/id/22/300/300" alt="李强作品1">
                        </div>
                        <div class="media-item">
                            <img src="https://picsum.photos/id/29/300/300" alt="李强作品2">
                        </div>
                        <div class="media-item">
                            <img src="https://picsum.photos/id/42/300/300" alt="李强作品3">
                        </div>
                    </div>
                    <div class="media-count">3</div>
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            李强
                            <span class="member-status status-online"></span>
                        </div>
                        <div class="member-distance">2.1km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">健身</span>
                        <span class="skill-tag">摄影</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 刚刚活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn message-btn" data-name="李强">
                                <i class="fas fa-comment"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 5. 单图会员卡片 -->
            <div class="member-card single-media">
                <div class="member-media">
                    <img src="https://picsum.photos/id/65/300/300" alt="赵敏" class="member-image">
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            赵敏
                            <span class="member-status status-offline"></span>
                        </div>
                        <div class="member-distance">9.7km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">Java</span>
                        <span class="skill-tag">Python</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 3天前活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn follow-btn" data-name="赵敏">
                                <i class="fas fa-plus"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 6. 无图会员卡片 -->
            <div class="member-card no-media">
                <div class="member-media">
                    <i class="fas fa-user no-media-placeholder"></i>
                </div>
                <div class="member-info">
                    <div class="member-header">
                        <div class="member-name">
                            张婷
                            <span class="member-status status-offline"></span>
                        </div>
                        <div class="member-distance">5.7km</div>
                    </div>
                    <div class="member-skills">
                        <span class="skill-tag">摄影</span>
                        <span class="skill-tag">PS</span>
                    </div>
                    <div class="member-meta">
                        <span><i class="fas fa-clock"></i> 1周前活跃</span>
                        <div class="member-actions">
                            <button class="action-icon-btn message-btn" data-name="张婷">
                                <i class="fas fa-comment"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="load-more" id="loadMore">
            <span>加载更多会员</span>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </div>
        <div class="nav-item active">
            <i class="fas fa-users nav-icon"></i>
            <span>会员</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </div>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 筛选器展开/收起
        const filterToggle = document.getElementById('filterToggle');
        const filtersContainer = document.getElementById('filtersContainer');
        const toggleIcon = document.getElementById('toggleIcon');
        
        filterToggle.addEventListener('click', function() {
            if (filtersContainer.style.maxHeight) {
                filtersContainer.style.maxHeight = null;
                toggleIcon.classList.remove('rotate');
            } else {
                filtersContainer.style.maxHeight = filtersContainer.scrollHeight + 'px';
                toggleIcon.classList.add('rotate');
            }
        });
        
        // 筛选标签页切换
        document.querySelectorAll('.filter-tab').forEach(tab => {
            tab.addEventListener('click', function() {
                // 切换标签激活状态
                document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 切换内容显示
                const filterId = this.getAttribute('data-filter') + '-filter';
                document.querySelectorAll('.filter-content').forEach(content => {
                    content.classList.remove('active');
                });
                document.getElementById(filterId).classList.add('active');
                
                // 调整容器高度
                filtersContainer.style.maxHeight = filtersContainer.scrollHeight + 'px';
            });
        });
        
        // 基础筛选选项
        document.querySelectorAll('.basic-filter-option').forEach(option => {
            option.addEventListener('click', function() {
                // 找到同级的所有选项并移除active类
                const parent = this.parentElement;
                parent.querySelectorAll('.basic-filter-option').forEach(opt => opt.classList.remove('active'));
                
                // 为当前选项添加active类
                this.classList.add('active');
                showToast(`已选择：${this.textContent}`);
            });
        });
        
        // 距离滑块
        const distanceSlider = document.getElementById('distanceSlider');
        const distanceValue = document.getElementById('distanceValue');
        
        distanceSlider.addEventListener('input', function() {
            const value = this.value;
            distanceValue.textContent = `${value}公里以内`;
            
            // 更新常用距离选项的选中状态
            document.querySelectorAll('.distance-filter .basic-filter-option').forEach(option => {
                option.classList.remove('active');
                if (option.textContent === `${value}公里内`) {
                    option.classList.add('active');
                } else if (value == 50 && option.textContent === '不限距离') {
                    option.classList.add('active');
                }
            });
        });
        
        // 技能标签筛选
        document.querySelectorAll('.skill-filter-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                this.classList.toggle('active');
                const tagText = this.querySelector('span').textContent;
                showToast(this.classList.contains('active') ? 
                    `已添加技能：${tagText}` : 
                    `已移除技能：${tagText}`);
            });
        });
        
        // 移除已选筛选器
        document.querySelectorAll('.remove-filter').forEach(btn => {
            btn.addEventListener('click', function() {
                const filterText = this.parentElement.querySelector('span').textContent;
                this.parentElement.remove();
                showToast(`已移除筛选：${filterText}`);
                
                // 如果没有筛选器了，隐藏清除全部按钮
                if (document.querySelectorAll('.selected-filter').length === 0) {
                    document.getElementById('clearAllFilters').style.display = 'none';
                }
            });
        });
        
        // 清除全部筛选器
        document.getElementById('clearAllFilters').addEventListener('click', function() {
            document.querySelectorAll('.selected-filter').forEach(filter => {
                filter.remove();
            });
            this.style.display = 'none';
            showToast('已清除全部筛选条件');
        });
        
        // 重置筛选器
        document.getElementById('resetFilters').addEventListener('click', function() {
            // 重置基础筛选
            document.querySelectorAll('.basic-filter-option').forEach(option => {
                option.classList.remove('active');
                if (option.parentElement.previousElementSibling.textContent.includes('全部')) {
                    option.classList.add('active');
                }
            });
            
            // 重置距离滑块
            distanceSlider.value = 10;
            distanceValue.textContent = '10公里以内';
            
            // 重置技能标签
            document.querySelectorAll('.skill-filter-tag').forEach(tag => {
                tag.classList.remove('active');
            });
            
            // 重置活跃度筛选
            document.getElementById('activity-all').checked = true;
            
            showToast('已重置所有筛选条件');
        });
        
        // 应用筛选器
        document.getElementById('applyFilters').addEventListener('click', function() {
            showToast('筛选条件已应用');
            // 收起筛选面板
            filtersContainer.style.maxHeight = null;
            toggleIcon.classList.remove('rotate');
        });
        
        // 视图切换
        const gridViewBtn = document.getElementById('gridViewBtn');
        const listViewBtn = document.getElementById('listViewBtn');
        const membersContainer = document.querySelector('.members-container');
        const body = document.body;
        
        gridViewBtn.addEventListener('click', function() {
            body.classList.remove('list-view');
            body.classList.add('grid-view');
            membersContainer.classList.remove('members-list-view');
            membersContainer.classList.add('members-grid');
            gridViewBtn.classList.add('active');
            listViewBtn.classList.remove('active');
        });
        
        listViewBtn.addEventListener('click', function() {
            body.classList.remove('grid-view');
            body.classList.add('list-view');
            membersContainer.classList.remove('members-grid');
            membersContainer.classList.add('members-list-view');
            listViewBtn.classList.add('active');
            gridViewBtn.classList.remove('active');
        });
        
        // 搜索功能
        document.querySelector('.search-input').addEventListener('keypress', function(e) {
            if (e.key === 'Enter' && this.value.trim()) {
                showToast(`搜索会员：${this.value.trim()}`);
            }
        });
        
        // 语音搜索
        document.getElementById('voiceSearch').addEventListener('click', function() {
            showToast('语音搜索已激活');
        });
        
        // 排序按钮
        document.getElementById('sortBtn').addEventListener('click', function() {
            showToast('排序选项已打开');
        });
        
        // 联系按钮
        document.querySelectorAll('.message-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const userName = this.getAttribute('data-name');
                showToast(`打开与${userName}的聊天窗口`);
            });
        });
        
        // 关注按钮
        document.querySelectorAll('.follow-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const userName = this.getAttribute('data-name');
                const isFollowing = this.classList.contains('following');
                
                if (isFollowing) {
                    this.classList.remove('following');
                    this.innerHTML = '<i class="fas fa-plus"></i>';
                    showToast(`已取消关注${userName}`);
                } else {
                    this.classList.add('following');
                    this.innerHTML = '<i class="fas fa-check"></i>';
                    showToast(`已关注${userName}`);
                }
            });
        });
        
        // 加载更多
        document.getElementById('loadMore').addEventListener('click', function() {
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
            
            // 模拟加载延迟
            setTimeout(() => {
                this.innerHTML = '<span>加载更多会员</span>';
                showToast('已加载更多会员');
            }, 1500);
        });
        
        // 返回按钮
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 初始化筛选器高度
        window.addEventListener('load', function() {
            // 默认收起筛选面板
            filtersContainer.style.maxHeight = null;
        });
    </script>
</body>
</html>

